package com.service.impl;

import com.dao.MedicalDao;
import com.domain.Patient;
import com.dao.PatientDao;
import com.service.IPatientService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2023-03-07
 */
@Service
public class PatientServiceImpl extends ServiceImpl<PatientDao, Patient> implements IPatientService {
    @Autowired
    private PatientDao patientDao;
    @Override
    public List<Patient> getByName(String name) {
        return patientDao.getByName(name);
    }
}
